﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2025-01-11 18:29
    /// 描 述：ShopApplications实体类
    /// </summary>
    [Table("shop_applications")]
    public class ShopApplicationsEntity : BaseEntity
    {
        /// <summary>
        /// 店铺名称
        /// </summary>
        /// <returns></returns>
        public string shop_name { get; set; }
        /// <summary>
        /// 店铺地址
        /// </summary>
        /// <returns></returns>
        public string address { get; set; }
        /// <summary>
        /// 经营者姓名
        /// </summary>
        /// <returns></returns>
        public string owner_name { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        /// <returns></returns>
        public string phone { get; set; }
        /// <summary>
        /// 营业执照图片URL
        /// </summary>
        /// <returns></returns>
        public string business_license { get; set; }
        /// <summary>
        /// 经营类目(多个用逗号分隔)
        /// </summary>
        /// <returns></returns>
        public string business_categories { get; set; }

        /// <summary>
        /// 身份证
        /// </summary> 
        public string idCardFront { get; set; }
        /// <summary>
        /// 身份证
        /// </summary> 
        public string idCardBack { get; set; }

        /// <summary>
        /// 申请人用户ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? applicant_id { get; set; }
        /// <summary>
        /// 审核状态:0待审核,1通过,2拒绝
        /// </summary>
        /// <returns></returns>
        public byte? status { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? apply_time { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? audit_time { get; set; }
        /// <summary>
        /// 审核人ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? audit_user_id { get; set; }
        /// <summary>
        /// 审核备注
        /// </summary>
        /// <returns></returns>
        public string audit_remark { get; set; }
        /// <summary>
        /// 拒绝原因
        /// </summary>
        /// <returns></returns>
        public string reject_reason { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? create_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? update_time { get; set; }
    }
}
